package com.itstyle.seckill.util.statusflow;

import com.alibaba.fastjson.annotation.JSONCreator;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

public enum OrderClassificationEnum {
    MALL(1, "标准电商"),

    /**
     * 标准核销
     */
    DISPATCH(2, "标准核销"),

    /**
     * 标准虚拟
     */
    VIRTUAL(3, "标准虚拟"),

    /**
     * 核销支付
     */
    DISPATCH_PAY(4, "核销支付"),


    /**
     * 组合订单
     */
    JOINT_WRITE_OFF(5, "组合标销售"),

    /**
     * 旅游订单
     */
    TRAVEL(6, "旅游订单"),

    /**
     * 组合电商
     */
    JOINT_MALL(7, "组合电商"),

    /**
     * 同城配送
     */
    DELIVER(8, "同城配送");

    private final int status;
    private final String name;

    OrderClassificationEnum(int status, String name) {
        this.status = status;
        this.name = name;
    }

    public int getStatus() {
        return status;
    }

    public String getName() {
        return name;
    }

    @JsonValue
    public Integer getValue() {
        return this.status;
    }
}

